package com.jsbb.dto.tool;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;

import java.util.List;

/**
 * 表导出DTO
 *
 * @author jsbb
 */
public class TableExportDto {

    @Schema(title = "ip")
    private String ip;

    @Schema(title = "端口")
    private String port;

    @Schema(title = "数据库")
    private String schema;

    @Schema(title = "用户名")
    private String user;

    @Schema(title = "密码")
    private String password;

    @NotNull
    @Schema(title = "表名")
    private List<String> tableNameList;

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }

    public String getSchema() {
        return schema;
    }

    public void setSchema(String schema) {
        this.schema = schema;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public List<String> getTableNameList() {
        return tableNameList;
    }

    public void setTableNameList(List<String> tableNameList) {
        this.tableNameList = tableNameList;
    }
}
